package cn.hackcloud.annotation.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import cn.hackcloud.annotation.bean.Person;

/**
 * 配置类
 * 
 * @author Created by laijun on 2018/10/19
 */
@Configuration // 告诉spring这是一个配置类
public class MainConfigOfPropertyValues {
	
	@Bean(value = "person")
	public Person person() {
		return new Person("laijun", 25);
	}
}
